<%@ page import="lf.day0109.lottery.entity.User" %>
<%@ page import="lf.day0109.lottery.dao.LotteryDao" %>
<%@ page import="lf.day0109.lottery.impl.LotteryDaoImpl" %><%--
  Created by IntelliJ IDEA.
  User: 19256
  Date: 2023/1/9
  Time: 22:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除用户信息</title>
    <%
        String markNo = request.getParameter("markNo");
        User user = new User();
        user.setMarkNo(markNo);
        LotteryDao lotteryDao = new LotteryDaoImpl();
        int deleteRes = lotteryDao.deleteUser(user);
        if (deleteRes > 0){
            //跳转到index.jsp页面
            //转发 和 重定向
            request.getRequestDispatcher("Lottery.jsp").forward(request,response);
        }else{
            out.print("删除失败");
        }
    %>
</head>
<body>

</body>
</html>
